home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Atlanta_1990 / Atlanta-Devcon.2 / AppShell / include / clib / appshell_protos.h
Encoding:
C/C++ Source or Header  |  1992-08-26  |  10.8 KB  |  191 lines

  1. /* apsh_main.c */
  2. BOOL HandleApp (int, char **, struct WBStartup *, struct TagItem *);
  3. BOOL HandleAppAsync (struct TagItem * anchor, struct MsgPort * sipc);
  4. struct AppInfo *InitAppInfo (struct Funcs * ft);
  5. VOID FreeAppInfo (struct AppInfo * ai);
  6. BOOL HandlerFunc ( struct AppInfo *ai , ULONG tags , ...);
  7. BOOL HandlerFuncA ( struct AppInfo *ai , struct TagItem *tl );
  8. APTR HandlerData ( struct AppInfo *ai , ULONG tags , ...);
  9. APTR HandlerDataA ( struct AppInfo *ai , struct TagItem *tl );
  10. STRPTR GetText ( struct AppInfo *ai , ULONG base , ULONG tid , STRPTR def );
  11. STRPTR PrepText __ARGS(( struct AppInfo *ai , ULONG base , ULONG tid , char *, ...));
  12. STRPTR BuildParseLine (STRPTR line, ULONG *argc, STRPTR *argv);
  13. VOID FreeParseLine (STRPTR);
  14. ULONG ParseLine ( STRPTR line , STRPTR *argv );
  15. STRPTR FindType ( STRPTR *array , STRPTR name , STRPTR defvalue );
  16. BOOL MatchValue ( STRPTR type , STRPTR value );
  17. BOOL QStrCmpI ( STRPTR, STRPTR );
  18. VOID RemoveMsgPort (struct MsgPort *);
  19. BOOL NotifyUser ( struct AppInfo *, STRPTR, struct TagItem *);
  20. VOID APSHSetWaitPointer (struct AppInfo *, struct TagItem *);
  21. VOID APSHClearPointer (struct AppInfo *, struct TagItem *);
  22.  
  23. /* apsh_lib.c */
  24. BOOL OpenLibraries ( struct AppInfo *ai , struct TagItem *ObjAttrs );
  25. VOID CloseLibraries ( struct AppInfo *ai , struct TagItem *ObjAttrs );
  26.  
  27. /* apsh_msghandle.c */
  28. BOOL AddMsgHandler ( struct AppInfo *ai , ULONG tags , ...);
  29. BOOL AddMsgHandlerA ( struct AppInfo *ai , struct TagItem *tl );
  30. VOID DelMsgHandlers ( struct AppInfo *ai );
  31.  
  32. /* apsh_dispatch.c */
  33. struct AppInfo *ProcessMsgs ( struct AppInfo *ai );
  34. BOOL PerfFunc (struct AppInfo * ai, ULONG fid, STRPTR cmd, struct TagItem * tl);
  35.  
  36. /* apsh_stdfuncs.c */
  37. VOID AliasFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  38. VOID DebugFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  39. VOID DisableFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  40. VOID EditFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  41. VOID EnableFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  42. VOID ExecMacroFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  43. VOID FaultFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  44. VOID GetFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  45. VOID GroupFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  46. VOID HelpFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  47. VOID LearnFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  48. VOID LoadMacroFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  49. VOID PriorityFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  50. VOID SaveMacroFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  51. VOID SelectFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  52. VOID SetFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  53. VOID StatusFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  54. VOID StopFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  55. VOID StubFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  56. VOID VersionFunc (struct AppInfo * ai, STRPTR args, struct TagItem * tl);
  57.  
  58. /* apsh_projmng.c */
  59. BOOL GetBaseInfo (struct AppInfo *, int, char **, struct WBStartup *);
  60. struct ProjNode *NewProject (struct AppInfo *, STRPTR, struct TagItem *);
  61. BOOL RemoveProject (struct AppInfo * ai, STRPTR cmd, struct TagItem * tl);
  62. BOOL AddProjects ( struct AppInfo *, LONG, struct WBArg *, struct TagItem *);
  63. struct ProjNode *GetProjNode ( struct AppInfo *ai , LONG cnt , struct TagItem *);
  64. VOID SwapProjNodes ( struct AppInfo *, struct ProjNode *, struct ProjNode *, struct TagItem *);
  65. struct DiskObject *IconFromWBArg ( struct WBArg *arg );
  66. VOID FreeProjects (struct AppInfo * ai, struct TagItem *);
  67. VOID FreeProject (struct ProjNode *);
  68.  
  69. /* apsh_functable.c */
  70. BOOL AddFuncEntry (struct AppInfo * ai, struct Funcs * sfe);
  71. VOID FreeFuncEntry (struct AppInfo * ai, struct FuncEntry *fe);
  72. BOOL AddFuncEntries (struct AppInfo * ai, struct Funcs * fels);
  73. VOID FreeFuncEntries (struct AppInfo *ai);
  74. struct FuncEntry *GetFuncEntry (struct AppInfo *, STRPTR, ULONG);
  75. ULONG GetFuncID (struct AppInfo * ai, STRPTR anchor);
  76. STRPTR GetFuncName (struct AppInfo * ai, ULONG id);
  77.  
  78. /* apsh_clonesipc.c */
  79. struct MsgHandler *setup_apsh_sipcA ( struct AppInfo *ai , struct TagItem *tl );
  80. BOOL handle_apsh_sipc ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  81. BOOL shutdown_apsh_sipc ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  82.  
  83. /* apsh_arexx.c */
  84. struct MsgHandler *setup_arexx ( struct AppInfo *ai , ULONG tags , ...);
  85. struct MsgHandler *setup_arexxA ( struct AppInfo *ai , struct TagItem *tl );
  86. BOOL open_arexx ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  87. BOOL handle_arexx ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  88. BOOL close_arexx ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  89. BOOL shutdown_arexx ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  90. BOOL send_rexx_command ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  91. VOID execute_command ( struct RexxMsg *rmsg , struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  92. VOID reply_rexx_command ( struct RexxMsg *rmsg , struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  93. VOID RXFunc ( struct AppInfo *a , STRPTR args , struct TagItem *tl );
  94. VOID WhyFunc ( struct AppInfo *a , STRPTR args , struct TagItem *tl );
  95.  
  96. /* apsh_dos.c */
  97. struct MsgHandler *setup_dos ( struct AppInfo *ai , ULONG tags , ...);
  98. struct MsgHandler *setup_dosA ( struct AppInfo *ai , struct TagItem *tl );
  99. BOOL open_dos ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  100. BOOL handle_dos ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  101. BOOL close_dos ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  102. BOOL shutdown_dos ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  103. VOID DisplayPrompt ( struct MsgHandler *mh );
  104. VOID send_read_packet ( struct StandardPacket *dos_message , BPTR console_fh , struct MsgPort *dos_reply_port , UBYTE *buff );
  105. VOID CMDShellFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  106.  
  107. /* apsh_idcmp.c */
  108. struct MsgHandler *setup_idcmp ( struct AppInfo *ai , ULONG tags , ...);
  109. struct MsgHandler *setup_idcmpA ( struct AppInfo *ai , struct TagItem *tl );
  110. BOOL open_idcmp ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  111. BOOL handle_idcmp ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  112. BOOL close_idcmp ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  113. BOOL shutdown_idcmp ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  114. VOID CloseWindowSafely ( struct Window *win );
  115. BOOL setup_key_array ( struct MsgHandler *mh , struct KeyboardCMD *KeyArray );
  116. VOID shutdown_key_array ( struct MsgHandler *mh );
  117. VOID HandleKeyEvent ( struct AppInfo *ai , struct MsgHandler *mh , struct IntuiMessage *msg , struct TagItem *tl );
  118. LONG DeadKeyConvert ( struct IntuiMessage *msg , UBYTE *kbuffer , LONG kbsize , struct KeyMap *kmap );
  119. VOID HandleGadgEvent ( struct AppInfo *ai , struct MsgHandler *mh , struct IntuiMessage *msg , struct TagItem *tl );
  120. VOID HandleMenuEvent ( struct AppInfo *ai , struct MsgHandler *mh , struct IntuiMessage *msg , struct TagItem *tl );
  121. BOOL APSHGetGadgetInfo(struct AppInfo *, STRPTR, STRPTR, ULONG *, ULONG *);
  122. BOOL APSHGetWindowInfo (struct AppInfo * ai, STRPTR wname, ULONG * window);
  123.  
  124. /* apsh_stdidcmp.c */
  125. VOID ActivateFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  126. VOID HotKeyFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  127. VOID ToBackFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  128. VOID ToFrontFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  129. VOID WindowFunc ( struct AppInfo *ai , STRPTR args , struct TagItem *tl );
  130.  
  131. /* apsh_friclass.c --- subclass of frameiclass */
  132. Class *initFrIClass (VOID);
  133. int freeFrIClass (Class *cl);
  134.  
  135. /* apsh_textbclass.c (misnamed) --- subclass of frbuttonclass */
  136. Class *initTextBClass (VOID);
  137. freeTextBClass (Class * cl);
  138.  
  139. /* apsh_windef.c */
  140. VOID PrepareWindowDef ( struct AppInfo *ai , struct IDCMPInfo *md , struct WinNode *wn, struct TagItem * );
  141. BOOL ProcessInfo ( struct WinObjDefData *pwd , struct Object *objl, struct TagItem *tl );
  142. struct ObjectNode *CreateObject ( struct WinObjDefData *pwd , struct Object *obj , struct TagItem *tl );
  143. VOID AdjustInner ( struct Rectangle *rect , struct Object *obj, struct TagItem * );
  144. VOID FreeWindowDef ( struct IDCMPInfo *md , struct WinNode *wn , struct TagItem * );
  145.  
  146. /* apsh_sipc.c */
  147. struct MsgHandler *setup_sipc ( struct AppInfo *ai , ULONG tags , ...);
  148. struct MsgHandler *setup_sipcA ( struct AppInfo *ai , struct TagItem *tl );
  149. BOOL open_sipc ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  150. BOOL handle_sipc ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  151. BOOL close_sipc ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  152. BOOL shutdown_sipc ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  153. BOOL send_sipc_command ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  154. BOOL SendSIPCMessage ( STRPTR name , ULONG type , VOID *data );
  155. BOOL SafePutToPort ( struct Message *message , STRPTR name );
  156. BOOL SendSIPCMessageP (struct MsgPort *, struct MsgPort *, ULONG, VOID *);
  157. APTR OpenSIPC (struct AppInfo * ai, STRPTR name, struct TagItem * tl);
  158. APTR SIPCPrintf (APTR ash, APTR data,...);
  159. APTR CloseSIPC (APTR ash, struct TagItem * tl);
  160.  
  161. /* apsh_tool.c */
  162. struct MsgHandler *setup_tool ( struct AppInfo *ai , ULONG tags , ...);
  163. struct MsgHandler *setup_toolA ( struct AppInfo *ai , struct TagItem *tl );
  164. BOOL open_tool ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  165. BOOL handle_tool ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  166. BOOL close_tool ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  167. BOOL shutdown_tool ( struct AppInfo *ai , struct MsgHandler *mh , struct TagItem *tl );
  168.  
  169. /* apsh_wb.c */
  170. struct MsgHandler *setup_wbA (struct AppInfo * ai, struct TagItem * tl);
  171. BOOL open_wb (struct AppInfo * ai, struct MsgHandler * mh, struct TagItem * tl);
  172. BOOL handle_wb (struct AppInfo * ai, struct MsgHandler * mh, struct TagItem * tl);
  173. BOOL close_wb (struct AppInfo * ai, struct MsgHandler * mh, struct TagItem * tl);
  174. BOOL shutdown_wb (struct AppInfo * ai, struct MsgHandler * mh, struct TagItem * tl);
  175.  
  176. /* apsh_misc.asm */
  177. int stricmpn (char *, char *, int);
  178. struct Node * __asm FindNameI(register __a0 struct List *, register __a1 STRPTR);
  179.  
  180. /* memory debugging */
  181. VOID showmem (STRPTR, BOOL);
  182. VOID endshowmem (VOID);
  183. #if 1
  184. #define SHOWMEM(a)    ;
  185. #define SKIPMEM(a)    ;
  186. #define ENDMEM()    ;
  187. #else
  188. #define SHOWMEM(a)    showmem(a, TRUE)
  189. #define SKIPMEM(a)    showmem(a, FALSE)
  190. #define ENDMEM()    endshowmem()
  191. #endif